<form class="layui-form" action="{:url()}" method="post" id="editForm">
    <div class="layui-form-item">
        <label class="layui-form-label">postId</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-nick" name="postId" lay-verify="required" placeholder="postId">
            {if isset($id)}
                {$id}
            {/if}
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">图片地址</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-username" name="imgSrc" lay-verify="required" placeholder="图片地址">
        </div>
    </div>

    <div class="pop-bottom-bar">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" hisi-data="{pop: true, refresh: true}">提交保存</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>

</form>
{include file="block/layui" /}
<script>
    layui.use(['form', 'func'], function() {
        var $ = layui.jquery, form = layui.form;
        layui.func.assign(formData);
    });
</script>
